package net.maku.module.dao;

import net.maku.module.entity.AgThirdParty;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 三方平台地址管理(AgThirdParty)表数据库访问层
 *
 * @author ChiHongYu
 * @since 2025-01-09 10:06:46
 */
@Mapper
public interface AgThirdPartyDao {

    
    AgThirdParty queryById(Integer id);

   
    List<AgThirdParty> page(@Param("param") Map<String, Object> param, 
                                  @Param("limit1") int limit1, 
                                  @Param("limit2") int limit2);

    
    int count(@Param("param") Map<String, Object> param);
    
  
    int insert(AgThirdParty agThirdParty);
    

    int update(AgThirdParty agThirdParty);

    
    int deleteById(Integer id);
    
  
    int changeUseById(Integer id, String useState);


    List<AgThirdParty> getList(@Param("param") HashMap<String, Object> param);


}
